<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="app">
        <ul>
            <li v-for="(user,index) in users" :key="user.name">
                <!--1、显示user信息：v-for="item in items"-->
                当前索引：{{index}} {{user.name}}==>{{user.gender}}==>{{user.age}}<br />

                <!--3、-->
                对象信息：
                <span v-for="(v,k,i) in user">{{k}}=={{v}}=={{i}}；</span>
            </li>
        </ul>

        <ul>
            <li v-for="(num,index) in nums" :key="num">

            </li>
        </ul>
    </div>
    <script src="../node_modules/vue/dist/vue.js"></script>
    <script>
        new Vue({
            el: "#app",
            data: {
                users: [{ "name": "柳岩", "gender": "女", "age": 21 }, { "name": "张三", "gender": "男", "age": 22 }, { "name": "李四", "gender": "女", "age": 40 }],
                nums: [1, 2, 3, 4]
            }
        });
    </script>
</body>

</html>